]> dgit.raspbian.org Git - gnome-shell.git/commit
gdm: Keep messages in queue until we've not fully processed them
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Tue, 16 Feb 2021 01:00:41 +0000 (02:00 +0100)
committerRay Strode <halfline@gmail.com>
Tue, 16 Feb 2021 18:00:10 +0000 (18:00 +0000)
commitef10bb6229ceb323822f27a436c5f3ce9ba12696
treec4303137cebf8dadb08fb7be958bf38f3d8fa668
parent9ecc1a4cd7f15e84898f6649125080d24a2a5e11
gdm: Keep messages in queue until we've not fully processed them

It can be convenient to get the currently showing message in order to
replace or remove it in case it's not needed anymore.

So simplify the message queue handling by only depending on a single
local variable (_messageQueue) and redefining hasPendingMessages
depending on its content.

Now messages are kept in queue till they are not fully processed and the
first message is always the one currently shown.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1683>
js/gdm/util.js